/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.tesoreria.be;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Gilmar Montoya
 */
@Entity
@Table(name = "tes_conf_fraccionamiento_trujillo")
@NamedQueries({@NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findAll", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c"), @NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findByFraCodigo", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c WHERE c.fraCodigo = :fraCodigo"), @NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findByCofCodigo", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c WHERE c.cofCodigo = :cofCodigo"), @NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findByFrarangoIni", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c WHERE c.frarangoIni = :frarangoIni"), @NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findByFrarangoFin", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c WHERE c.frarangoFin = :frarangoFin"), @NamedQuery(name = "ConfiguracionFraccionamientoTrujillo.findByFranumCuotas", query = "SELECT c FROM ConfiguracionFraccionamientoTrujillo c WHERE c.franumCuotas = :franumCuotas")})
public class ConfiguracionFraccionamientoTrujillo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "fra_codigo", nullable = false)
    private Integer fraCodigo;
    @Column(name = "cof_codigo")
    private Integer cofCodigo;
    @Column(name = "fra_rangoIni", precision = 11, scale = 4)
    private Double frarangoIni;
    @Column(name = "fra_rangoFin", precision = 11, scale = 4)
    private Double frarangoFin;
    @Column(name = "fra_numCuotas")
    private Integer franumCuotas;

    public ConfiguracionFraccionamientoTrujillo() {
    }

    public ConfiguracionFraccionamientoTrujillo(Integer fraCodigo) {
        this.fraCodigo = fraCodigo;
    }

    public Integer getFraCodigo() {
        return fraCodigo;
    }

    public void setFraCodigo(Integer fraCodigo) {
        this.fraCodigo = fraCodigo;
    }

    public Integer getCofCodigo() {
        return cofCodigo;
    }

    public void setCofCodigo(Integer cofCodigo) {
        this.cofCodigo = cofCodigo;
    }

    public Double getFrarangoIni() {
        return frarangoIni;
    }

    public void setFrarangoIni(Double frarangoIni) {
        this.frarangoIni = frarangoIni;
    }

    public Double getFrarangoFin() {
        return frarangoFin;
    }

    public void setFrarangoFin(Double frarangoFin) {
        this.frarangoFin = frarangoFin;
    }

    public Integer getFranumCuotas() {
        return franumCuotas;
    }

    public void setFranumCuotas(Integer franumCuotas) {
        this.franumCuotas = franumCuotas;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (fraCodigo != null ? fraCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ConfiguracionFraccionamientoTrujillo)) {
            return false;
        }
        ConfiguracionFraccionamientoTrujillo other = (ConfiguracionFraccionamientoTrujillo) object;
        if ((this.fraCodigo == null && other.fraCodigo != null) || (this.fraCodigo != null && !this.fraCodigo.equals(other.fraCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.tesoreria.be.ConfiguracionFraccionamientoTrujillo[fraCodigo=" + fraCodigo + "]";
    }

}
